package com.dd.common.constant;

import org.springframework.http.HttpMethod;

/**
 * 用户请求操作枚举类
 * 用于统一日志中划分用户请求所对应的操作，和 @Log 注解配合使用
 */
public enum  OperatType {
    OTHER(null,"其他操作"),
    INSERT(HttpMethod.POST,"新增"),
    UPDATE(HttpMethod.PUT,"修改"),
    DELETE(HttpMethod.DELETE,"删除"),
    GRANT(null,"授权"),
    EXPORT(null,"导出"),
    IMPORT(null,"导入"),
    FORCE(null,"强退");


    /**
     * 请求方法 post
     */
    private HttpMethod method;
    /**
     * 操作描述
     */
    private String description;

    private OperatType(HttpMethod method,String description){
        this.method = method;
        this.description=description;
    }


}
